<template>
  <!-- 头部区域 -->
  <div class="myhead">

    <!--左边-->
    <div class="leftTip itemDiv" >
      <a href="#"><img src="../assets/logo.png" class="mylogo" ></a>
    </div>
    <!--中间-->
    <div class="search itemDiv"  >

      <input type="text" placeholder="请输入..."  value="" />
      <button><i><img src="../assets/sousuo.png"></i></button>

    </div>
    <!--右边-->
    <div class="rightTip itemDiv">
      <div class="rightTip2">
        注册
      </div>

      <div class="rightTip2">
        登录
      </div>
      <div class="rightTip1">
        <img src="../assets/user.png">
      </div>

      <div class="rightTip1" align="center">
        <div><img src="../assets/xapp.png"></div>
        <div >下载APP</div>
      </div>
      <div class="rightTip1" align="center">
        <div><img src="../assets/bianxie.png"></div>
        <div >开始创作</div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: 'myhead',
  data () {
    return {
      msg: 'myhead'
    }
  }
}
</script>

<style scoped>
  div{
    /*border:1px solid #F00;*/
  }
  .myhead{
    margin: 0 auto;
    width:90%;
    display: table;
    table-layout: fixed;
    height:70px;
  }
  .mylogo{
    width: 118px;
    height: 38px;
    margin-top: 10px;
  }
  .rightTip1{
    margin-top: 10px;
    float:right;
    margin-left:20px;
    font-size:12px;
  }
  .rightTip2{
    margin-top: 10px;
    float:right;
    margin-left:20px;
    font-size:12px;
    line-height: 40px;
  }

  .itemDiv{
    display:table-cell;
  }

  .search{
    display: flex;
    /*border: 1px solid #51BAB7;*/
  }
  .search input{
    float: left;//左浮动
    flex: 4;
    width:400px;
    height: 40px;
    outline: none;
    border: 1px solid #51BAB7;
    box-sizing: border-box;
    padding-left:16px;
    border-radius: 20px 0px 0px 20px;
  }
  .search button{
    float: right;
    flex: 0.3;
    height: 40px;
    background-color: #51BAB7;
    color: white;
    border-style: none;
    outline: none;
    border-radius: 0px 20px 20px 0px;
  }

</style>
